import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '../components/home/home.vue'
import fenlei from '../components/class/class.vue'
import shopping from '../components/shopping/shopping.vue'
import my from '../components/my/my.vue'
import sreach from '../components/home/sreach'
import good_list from '../components/good_list/index.vue'
import good_delit from '../components/good_delit/index.vue'

Vue.use(VueRouter)

  const routes = [
   {path:'/',component:home,},
   {path:'/sreach',component:sreach},
   {path:'/class',component:fenlei},
   {path:'/shopping',component:shopping},
   {path:'/my',component:my},
   {path:'/good_list',component:good_list},
   {path:'/good_delit',component:good_delit}

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
